const process = require('node:process')
require('dotenv').config()

if (!process.env.V1_FE_PORT)
  throw new Error('Port of website not found in env')

module.exports = {
  apps: [{
    name: 'website',
    script: `npx serve ./packages/website/dist -p ${process.env.V1_FE_PORT}`,
  }, {
    name: 'server',
    script: 'npm run dev',
    cwd: './packages/server',
  }],
}
